package com.zhao.dao;

import com.sun.org.apache.xpath.internal.operations.Or;
import com.zhao.pojo.OrderForm;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderFormDao {
    int add(OrderForm orderForm);
    List<OrderForm> findByBuyerIDAndStatus(String buyerID, String status, String universityID);
    List<OrderForm> findBySellerIDAndStatus(String sellerID,String status,String universityID);
    List<OrderForm> findByUniversityID(String universityID);
    int delete(String orderFormID,String universityID);
    OrderForm findByID(String orderFormID,String universityID);
    int updateStatus(OrderForm orderForm);
    List<OrderForm> findByStatus(String status,String universityID);
}
